﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketOnlineDAO;
using MarketOnlineDTO;

namespace MarketOnlineBUS
{
    public class DonViTinhBUS
    {
        public Boolean ThemDonViTinh(DonViTinhDTO dvt)
        {
            return new DonViTinhDAO().ThemDonViTinh(dvt);
        }

        public Boolean XoaDonViTinh(DonViTinhDTO dvt)
        {
            return new DonViTinhDAO().XoaDonViTinh(dvt);
        }

        public Boolean CapNhatDonViTinh(DonViTinhDTO dvt)
        {
            return new DonViTinhDAO().CapNhatDonViTinh(dvt);
        }

        public List<DonViTinhDTO> LayDanhSachDonViTinh()
        {
            return new DonViTinhDAO().LayDanhSachDonViTinh();
        }

        //@Trọng Võ
        public DonViTinhDTO LayDonViTinh(int MaDonViTinh)//tested
        {
            return new DonViTinhDAO().LayDonViTinh(MaDonViTinh);
        }
    }
}
